function buildName(firstName: string, ...restOfName: string[]) {
    console.log("剩余参数",restOfName);
    console.log("所有的参数",arguments);
    console.log("剩余参数的类型",typeof restOfName)
    console.log("剩余参数的类型",typeof arguments)
    
  return firstName + " " + restOfName.join(" ");
}

let employeeName = buildName("Joseph", "Samuel", "Lucas", "MacKinzie");